//
//  firstNavViewController.m
//  诗韵
//
//  Created by Song on 2018/3/19.
//  Copyright © 2018年 Song. All rights reserved.
//

#import "firstNavViewController.h"

@interface firstNavViewController ()

@end

@implementation firstNavViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    // navigationbar 背景图片
    [self.navigationBar setShadowImage:[UIImage new]]; // 去掉下划线
    [self.navigationBar setBackgroundImage:[UIImage imageNamed:@"background_top"] forBarMetrics:UIBarMetricsDefault];
    
    
    
//    UIBarButtonItem *backBtn = [[UIBarButtonItem alloc] init];
//    backBtn.title = @"返回";
//    backBtn.image = [UIImage imageNamed:@"back"];
//    self.navigationItem.backBarButtonItem = backBtn;
    
//    UIButton *back = [UIButton buttonWithType:UIButtonTypeCustom];
//    
//    back.titleLabel.font = [UIFont boldSystemFontOfSize:13];
//    
//    [back setTitle:@"Back" forState:UIControlStateNormal];
//    
//    [back setFrame:CGRectMake(5, 2, 52, 30)];
//    
//    [back setBackgroundImage:[UIImage imageNamed:@"bar_return"] forState:UIControlStateNormal];
//    
//    [back addTarget:self action:@selector(popDiyView) forControlEvents:UIControlEventTouchUpInside];
//    
//    UIBarButtonItem *barButton = [[UIBarButtonItem alloc] initWithCustomView:back];
//    
//    self.navigationItem.leftBarButtonItem = barButton;
}

//-(void)popDiyView {
//    [self.navigationController popViewControllerAnimated:YES]; //nextVC这个界面回到上一界面
//}

@end
